package com.eee.machine.dao.mapper;

import com.eee.machine.beans.TMemberMachine;
import com.eee.machine.beans.TMemberMachineExample;
import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface TMemberMachineMapper {
    long countByExample(TMemberMachineExample example);

    int deleteByExample(TMemberMachineExample example);

    int deleteByPrimaryKey(String tMemberMachineId);

    int insert(TMemberMachine record);

    int insertSelective(TMemberMachine record);

    List<TMemberMachine> selectByExample(TMemberMachineExample example);

    TMemberMachine selectByPrimaryKey(String tMemberMachineId);

    int updateByExampleSelective(@Param("record") TMemberMachine record, @Param("example") TMemberMachineExample example);

    int updateByExample(@Param("record") TMemberMachine record, @Param("example") TMemberMachineExample example);

    int updateByPrimaryKeySelective(TMemberMachine record);

    int updateByPrimaryKey(TMemberMachine record);

    @Select("select t_machine_id from t_member_machine where t_member_phone = #{phone} and delete_flag = 0")
    String getSaleManBindMachineId(@Param("phone") String phone);
}